package routes

import (
	"emailcenter/internal/handler"
	"github.com/gin-gonic/gin"
)

func InitRouter(ginRouter *gin.Engine) {
	emailcenterV1 := ginRouter.Group("/emailcenter/v1")

	// 鉴权组
	//emailcenterDef := emailcenter.Group("/def")
	//{
	//}

	// 公开组
	emailcenterV1Nil := emailcenterV1.Group("/nil")
	{
		emailcenterV1Nil.GET("/link", handler.VerifyUUID)
		emailcenterV1Nil.POST("/captcha", handler.GenerateCaptcha)
	}

}
